#!/usr/bin/env bash

echo "Now, The Service on your Linux System will be Detected!";
echo -e "The www, ftp, ssh, mail will be Detected! \n";

testing=`netstat -tuln | grep ":80 "`;

if [ "$testing" != "" ]; then
	echo "The WWW is running...";
fi

testing=`netstat -tuln | grep ":21 "`;
if [ "$testing" != "" ]; then
	echo "The FTP is running...";
fi

testing=`netstat -tuln | grep ":22 "`;
if [ "$testing" != "" ]; then
	echo "The SSH is running...";
fi

testing=`netstat -tuln | grep ":25 "`;
if [ "$testing" != "" ]; then
	echo "The MAIL is running...";
fi

exit 0;
